#ifndef SINGLERUN_H
#define SINGLERUN_H

//#include <QObject>
#include <QString>
#include <QSharedMemory>

class LSingleRun {

public:
    static LSingleRun* getInstance() {
        if(!instance)
            instance = new LSingleRun();
        return instance;
    }

    bool isRunningNow(const QString &applicationName);

private:
    LSingleRun();
    LSingleRun(const LSingleRun& );
    LSingleRun& operator=(const LSingleRun& );

    ~LSingleRun();

    static LSingleRun* instance;
	bool isRunning;
    QSharedMemory shared;

};


#endif  //SINGLERUN_H
